3.1559 \(\int \frac{1}{\sqrt{a-b x} \sqrt{c+d x}} \, dx\)

Optimal. Leaf size=43 \[ -\frac{2 \tan ^{-1}\left (\frac{\sqrt{d} \sqrt{a-b x}}{\sqrt{b} \sqrt{c+d x}}\right )}{\sqrt{b} \sqrt{d}} \]

[Out]

(-2*ArcTan[(Sqrt[d]*Sqrt[a - b*x])/(Sqrt[b]*Sqrt[c + d*x])])/(Sqrt[b]*Sqrt[d])

_______________________________________________________________________________________

Rubi [A]  time = 0.0454478, antiderivative size = 43, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 20, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.1 \[ -\frac{2 \tan ^{-1}\left (\frac{\sqrt{d} \sqrt{a-b x}}{\sqrt{b} \sqrt{c+d x}}\right )}{\sqrt{b} \sqrt{d}} \]

Antiderivative was successfully verified.

[In]  Int[1/(Sqrt[a - b*x]*Sqrt[c + d*x]),x]

[Out]

(-2*ArcTan[(Sqrt[d]*Sqrt[a - b*x])/(Sqrt[b]*Sqrt[c + d*x])])/(Sqrt[b]*Sqrt[d])

_______________________________________________________________________________________

Rubi in Sympy [A]  time = 6.8135, size = 39, normalized size = 0.91 \[ \frac{2 \operatorname{atan}{\left (\frac{\sqrt{b} \sqrt{c + d x}}{\sqrt{d} \sqrt{a - b x}} \right )}}{\sqrt{b} \sqrt{d}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  rubi_integrate(1/(-b*x+a)**(1/2)/(d*x+c)**(1/2),x)

[Out]

2*atan(sqrt(b)*sqrt(c + d*x)/(sqrt(d)*sqrt(a - b*x)))/(sqrt(b)*sqrt(d))

_______________________________________________________________________________________

Mathematica [C]  time = 0.110626, size = 64, normalized size = 1.49 \[ \frac{i \log \left (2 \sqrt{a-b x} \sqrt{c+d x}-\frac{i (-a d+b c+2 b d x)}{\sqrt{b} \sqrt{d}}\right )}{\sqrt{b} \sqrt{d}} \]

Antiderivative was successfully verified.

[In]  Integrate[1/(Sqrt[a - b*x]*Sqrt[c + d*x]),x]

[Out]

(I*Log[2*Sqrt[a - b*x]*Sqrt[c + d*x] - (I*(b*c - a*d + 2*b*d*x))/(Sqrt[b]*Sqrt[d
])])/(Sqrt[b]*Sqrt[d])

_______________________________________________________________________________________

Maple [B]  time = 0.015, size = 84, normalized size = 2. \[{1\sqrt{ \left ( -bx+a \right ) \left ( dx+c \right ) }\arctan \left ({1\sqrt{bd} \left ( x-{\frac{ad-bc}{2\,bd}} \right ){\frac{1}{\sqrt{-d{x}^{2}b+ \left ( ad-bc \right ) x+ac}}}} \right ){\frac{1}{\sqrt{-bx+a}}}{\frac{1}{\sqrt{dx+c}}}{\frac{1}{\sqrt{bd}}}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  int(1/(-b*x+a)^(1/2)/(d*x+c)^(1/2),x)

[Out]

((-b*x+a)*(d*x+c))^(1/2)/(-b*x+a)^(1/2)/(d*x+c)^(1/2)/(b*d)^(1/2)*arctan((b*d)^(
1/2)*(x-1/2*(a*d-b*c)/b/d)/(-d*x^2*b+(a*d-b*c)*x+a*c)^(1/2))

_______________________________________________________________________________________

Maxima [F]  time = 0., size = 0, normalized size = 0. \[ \text{Exception raised: ValueError} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate(1/(sqrt(-b*x + a)*sqrt(d*x + c)),x, algorithm="maxima")

[Out]

Exception raised: ValueError

_______________________________________________________________________________________

Fricas [A]  time = 0.219046, size = 1, normalized size = 0.02 \[ \left [\frac{\log \left (4 \,{\left (2 \, b^{2} d^{2} x + b^{2} c d - a b d^{2}\right )} \sqrt{-b x + a} \sqrt{d x + c} +{\left (8 \, b^{2} d^{2} x^{2} + b^{2} c^{2} - 6 \, a b c d + a^{2} d^{2} + 8 \,{\left (b^{2} c d - a b d^{2}\right )} x\right )} \sqrt{-b d}\right )}{2 \, \sqrt{-b d}}, \frac{\arctan \left (\frac{{\left (2 \, b d x + b c - a d\right )} \sqrt{b d}}{2 \, \sqrt{-b x + a} \sqrt{d x + c} b d}\right )}{\sqrt{b d}}\right ] \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate(1/(sqrt(-b*x + a)*sqrt(d*x + c)),x, algorithm="fricas")

[Out]

[1/2*log(4*(2*b^2*d^2*x + b^2*c*d - a*b*d^2)*sqrt(-b*x + a)*sqrt(d*x + c) + (8*b
^2*d^2*x^2 + b^2*c^2 - 6*a*b*c*d + a^2*d^2 + 8*(b^2*c*d - a*b*d^2)*x)*sqrt(-b*d)
)/sqrt(-b*d), arctan(1/2*(2*b*d*x + b*c - a*d)*sqrt(b*d)/(sqrt(-b*x + a)*sqrt(d*
x + c)*b*d))/sqrt(b*d)]

_______________________________________________________________________________________

Sympy [F]  time = 0., size = 0, normalized size = 0. \[ \int \frac{1}{\sqrt{a - b x} \sqrt{c + d x}}\, dx \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate(1/(-b*x+a)**(1/2)/(d*x+c)**(1/2),x)

[Out]

Integral(1/(sqrt(a - b*x)*sqrt(c + d*x)), x)

_______________________________________________________________________________________

GIAC/XCAS [A]  time = 0.228959, size = 73, normalized size = 1.7 \[ \frac{2 \, b{\rm ln}\left ({\left | -\sqrt{-b d} \sqrt{-b x + a} + \sqrt{b^{2} c +{\left (b x - a\right )} b d + a b d} \right |}\right )}{\sqrt{-b d}{\left | b \right |}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate(1/(sqrt(-b*x + a)*sqrt(d*x + c)),x, algorithm="giac")

[Out]

2*b*ln(abs(-sqrt(-b*d)*sqrt(-b*x + a) + sqrt(b^2*c + (b*x - a)*b*d + a*b*d)))/(s
qrt(-b*d)*abs(b))